Revit learning path 01_Revit basics, revit path 01_revitPreface:
This category records the path to Revit learning. Beginners will inevitably have a blind eye. You are welcome to join us!Revit Introduction
Revit is a modeling software built for Building Information Modeling (
Revit Secondary Development Foundation-add external tool options to the additional module, and revit Secondary Development
Those who want to participate in secondary development with Revit may have such a situation. When we open our revit (version 2014 or later), click Add module, an external tool is missing !!! Is Aut
Revit secondary development-obtain texture maps of materials and Secondary Development of revit
The Onmaterial () method in the IExportContext export class can be used to obtain the material information, mainly the material ID. Then, the material object material is obtained based on the material ID, and the Asset object is obtained through the following code:
ElementId appearanceId = material. AppearanceA
Revit 2012 API provides extended storage extensible storage to attach data to revit files.
The data is appended to the object. For more information, see the projectinfo example attached to the project file.
Using
System;
Using
System. Collections. Generic;
Using
System. LINQ;
Using
System. text; UsingWinform=System. Windows. forms; UsingAutodesk. revit
The built-in load calculation tool for Revit MEP is based on the US ASHRAE load calculation standard using thermal balance method (HB) and Radiation Time series (RTS) for load calculations. The tool can automatically identify the building model information, read the area of the building components, volume and other data and calculate.
Basic settings
1.1. LocationLocation information is used to determine the latitude and longitude of the
The number of elements in the document is different from that in the view.
For example, even if a wall is not drawn, it also contains 6 walls.
Using
System;
Using
System. Collections. Generic;
Using
System. LINQ;
Using
System. text; UsingWinform=System. Windows. forms; UsingAutodesk. revit. UI;UsingAutodesk. revit. dB;UsingAutodesk. revit. attribu
1.TextWriter (reader) is a writer (reader) for continuous character series processing, from System.IO2.StringWriter (reader) inherits TextWriter (reader), which is primarily a class that handles strings, with the following examples:TextWriter StringWriter = new StringWriter ();StringWriter. Write ("Hello, write by Stri
At the invitation of the chat group, I gave a lecture on Bim secondary development in the group at on January 1, October 11.
Since the participants are basically from the design institute and the construction unit, they gave an overview of revit secondary development and explained revit secondary development in a way that non-programmers can understand.This allows industry leaders or owners to understand t
Connector category, the duct not only has two ends, may also have on the curve.[TransactionAttribute (Autodesk. Revit. Attributes. TransactionMode. Manual)]Cmdconne: IExternalCommand{Result Execute (ExternalCommandData commandData, messages, ElementSet elements){UIApplication app = commandData. Application;Document doc = app. ActiveUIDocument. Document;Selection sel = app. ActiveUIDocument. Selection;Transaction ts = Transaction (doc ,);Ts. Start ();R
Although revit users and development are currently rare in China, this is a trend.
In the future, revit will replace AUTOCAD in many ways.
The Secondary Development of CAD is also very popular in China.
However, using C ++ makes it hard for many people.
The Secondary Development of revit can use C # And it is very easy to get started.
Assume that you are a C
In Revitapi, the method of creating a model line is not in the class Modelcurve itself, which is a common confusion with APIs, and does not know where to use the interface. This can only be accumulated through experience.The API for creating model lines is: Autodesk.Revit.Creation.NewModelCurve
Public Modelcurve Newmodelcurve (
Curve geometrycurve,
sketchplane sketchplane
)
Model Curve has 5 kinds of types, through the input corresponding Curve can get different modelcurve.
Autodesk.re
A mechanical system is created and is not connected with a duct. Not quite familiar yet. record it.
Connectorset
=
New
Connectorset ();Connector baseconne
=
Null
;Connectorsetiterator CSI
=
Null
;Elementset Selection
=
Sel. elements;
Foreach
(Element E
In
Selection){
If
(E
Is
Familyinstance){Familyinstance fi
=
E
As
Familyinstance;Family
=
Fi. symbol. Family;
If
(Family. familycategory. Name
=
"
Mechanical Equipment
"
);FilteredElementCollector collector = new FilteredElementCollector (doc). WhereElementIsCurveDriven () // You can process any element whose Location is LocationCurve.. OfCategory (_ bic). Excluding (visited. Union . WherePasses (intersectSphere );Neighbors. AddRange (collector. ToElementIds ());}/// /// Determine all neighbouring elements close/// The two ends of the current element 'E ',/// Skipping all previusly visited ones./// Void AddConnectedElements (List Element e,List {Location loc =
"parameter" of " family type" is divided into "two types": " family parameter ", "Shared parameter", "" "two different parameter data": type parameter, instance parameter. 】The family parameter of the family category is the placement behavior and the component properties of the various artifacts. The use of these components is related to the field of use, namely: the Division of labor related to the various professions (different division of labor uses the same thing)." parameter " of "family
Element element = Doc.getelement (ElementID);Autodesk.Revit.DB.Parameter Familytype = Element.get_parameter (Builtinparameter.elem_family_and_type_param);// System family and type parameters (contains elementid of system family and type Object)if (Familytype! = null Familytype.storagetype = = Storagetype.elementid familytype.aselementid (). IntegerValue >= 0){Element Elem = doc. GetElement (Familytype.aselementid ()); system family and type Objectif (elem! = null){Readparameters (Elem. Paramet
I want to create a wall on a skewed face. Is there any sample code for reference? Jeremy has a simple piece of code here. The object document is a project that contains a Conceptual Mass Family instance. The code first retrieves the faces (-1, 0, 1) in the normal direction of the conceptual block, and then creates a wall on this surface. [Csharp] void CreateFaceWall (Document doc) {FilteredElementCollector collector = new FilteredElementCollector (doc); FamilyInstance fi = collector. ofClass (ty
Due to the version problem of Revit, the code for the generated wall element found on the web, compiled in Revit 2016 on my machine, was not able to pass through multiple debugs and finally found the code to generate the wall elements using the API in Revit 2016, which is now posted.The following code is passed in the context of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.